package csel.model.skills;

import csel.model.CharacterStats;
import csel.model.entity.Character;

public class RangedWeapon extends PassiveSkill
{
	private static final long serialVersionUID = 5L;

	public RangedWeapon(Character owner)
	{
		super(owner);
		setName("ranged weapon");
		setDescription("self descriptive.");
	}

	@Override
	public int applyBonus(CharacterStats cs, int value)
	{
		if(cs == CharacterStats.RangedWeapon)
		{
			return(value + getPointsAllocated());
		}
		else
		{
			return(value);
		}
	}
}